package com.sz.admin.ai.factory.chatFactory.handler;

import com.sz.admin.ai.factory.chatFactory.entity.ChatPlatformEnum;
import com.sz.admin.ai.factory.chatFactory.entity.dto.ChatDTO;
import org.springframework.http.codec.ServerSentEvent;
import reactor.core.publisher.Flux;

/**
 * @描述: 对话模型Handler
 * @Author: TangYuan
 * @Date: 2025/2/24 15:04
 */
public interface ChatHandler {
    
    /**
     * 获取ChatPlatformEnum
     * @return {@link ChatPlatformEnum}
     */
    ChatPlatformEnum getChatPlatformEnum();
    
    Flux<ServerSentEvent<String>> chat(ChatDTO chat);
}
